﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:FreshTexture" x:Class="FreshTexture.MainWindow"
        mc:Ignorable="d"
        Title="Fresh Texture" Loaded="MainWindow_OnLoaded" Initialized="MainWindowInitialized" 
        DataContext="{Binding MainViewModel, Source={StaticResource Locator}}">
	<Grid >
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition Width="222.656" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="21.216" />
			<RowDefinition />
			<RowDefinition Height="74.9" />
		</Grid.RowDefinitions>
		<Menu Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
			<MenuItem Header="File">
				<MenuItem Header="_Load" Command="{Binding LoadCommand}" />
				<MenuItem Header="_Save" Command="{Binding SaveCommand}" />
				<Separator />
				<MenuItem Header="Exit" Command="{Binding ExitCommand}"/>
			</MenuItem>

			<MenuItem Header="Edit">
				<MenuItem Header="Export" />
				<MenuItem Header="Import" />
				<MenuItem Header="Options" />
				<Separator />
				<MenuItem Header="Open in editor" />
			</MenuItem>
			<MenuItem Header="Help">
				<MenuItem Header="Info" />
				<MenuItem Header="About" />
				<MenuItem Header="License" />
			</MenuItem>
		</Menu>
		<TabControl
			Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" DataContext="{Binding MainViewModel, Source={StaticResource Locator}}" >
			<TabItem Grid.Row="0" Header="3d">

                <Grid >
                	<local:UserControl3d/>
                </Grid>

            </TabItem>
            
            <TabItem Grid.Row="1" Header="2d">
                
                <Grid >
                	<local:UserControl2D/>
                </Grid>

            </TabItem>

		</TabControl>
		<GroupBox Grid.Column="1" Header="Info" Grid.Row="1" />
		<GroupBox Grid.Column="1" Header="Scanning for resources" Grid.Row="2" />
	</Grid>
</Window>